import request from '@/utils/request'

// 查询服务内容列表
export function listServiceContent(query) {
  return request({
    url: '/system/serviceContent/list',
    method: 'get',
    params: query
  })
}

// 查询服务内容详细
export function getServiceContent(serviceId) {
  return request({
    url: '/system/serviceContent/' + serviceId,
    method: 'get'
  })
}

// 新增服务内容
export function addServiceContent(data) {
  return request({
    url: '/system/serviceContent',
    method: 'post',
    data: data
  })
}

// 修改服务内容
export function updateServiceContent(data) {
  return request({
    url: '/system/serviceContent',
    method: 'put',
    data: data
  })
}

// 删除服务内容
export function delServiceContent(serviceId) {
  return request({
    url: '/system/serviceContent/' + serviceId,
    method: 'delete'
  })
}
